#include <stdio.h>
#include <stdlib.h>

int main(int argc, char const* argv[])
{
    unsigned int size = 1024 * 1024, n = 0;

    while (malloc(size))
        n ++;

    printf("malloc %d MB\n", n);

    return 0;
}
